<?php

if (file_exists('/home/.welch/djzion/dayindeals.com/config.php')) include '/home/.welch/djzion/dayindeals.com/config.php';
else include '../../blog.config.php';

include 'lib/Database.php';
include 'lib/image_manager.php';
include 'lib/scraping/BlogScraper.php';

foreach(glob("lib/scraping/*.php") as $class_filename)
{
  require_once $class_filename;
}

function urlsafe($str)
{
    $str = str_replace(" ", '%20', $str);
    $str = str_replace(')', '%7D', $str);
    $str = str_replace(')', '%7D', $str); 
    
    return $str;
}


?>